<div class="page" id="forgot">
	<?php if($this->view->func == 'reset') { ?>
		<h3>Reset your password</h3>
		<span class="advice">Hello <?php echo $this->view->data['name']; ?>, you can reset your password here and then you will be logged in automatically.</span>
		<?php echo $this->partial('helpers/avatar.php', array(
			'size' => 110,
			'user' => array(
				'id' => $this->view->data['id'],
				'link' => $this->view->data['link'],
				'name' => $this->view->data['name'],
				'avatar' => $this->view->data['avatar']
			)
		)); ?>
		<div class="panel">
			<h4>Change Password</h4>
			<form id="form_password" autocomplete="off">
				<input type="hidden" name="token" value="<?php echo $this->view->token; ?>" />
				<label class="input">
					<input type="password" value="" name="password" maxlength="30">
					<span>New Password</span>
				</label>
				<label class="input">
					<input type="password" value="" name="confirm" maxlength="30">
					<span>Confirm Password</span>
				</label>
				<div class="right"><button type="submit">Change Password</button></div>
				<div class="clear"></div>
			</form>
		</div>
		<div class="clear"></div>
	<?php } else { ?>
		<h3>Forgot your password?</h3>
		<span class="advice">No problem, just try to remember your E-mail Address or your Character Name.</span>
		<div class="left">
			<h4>Option A</h4>
			<form id="form_email">
				<label class="input">
					<input type="text" value="" name="email" maxlength="30">
					<span>E-mail Address</span>
				</label>
				<div class="right"><button type="submit">Submit</button></div>
				<div class="clear"></div>
			</form>
		</div>
		<div class="mid">
			OR
		</div>
		<div class="right">
			<h4>Option B</h4>
			<form id="form_name">
				<label class="input">
					<input type="text" value="" name="name" maxlength="12">
					<span>Character Name</span>
				</label>
				<div class="right"><button type="submit">Submit</button></div>
				<div class="clear"></div>
			</form>
		</div>
		<div class="clear"></div>
	<?php } ?>
</div>